home *** CD-ROM | disk | FTP | other *** search
/ Hyper Stacks 1994 May / Hyper Stacks (Pacific HiTech)(1994)[Mac].iso / HyperTalk / Lazy Date / card_3819.txt < prev    next >
Encoding:
Text File  |  1988-01-19  |  2.0 KB  |  67 lines

  1. -- card: 3819 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 3302
  5. -- name: 
  6.  
  7.  
  8. -- part 13 (button)
  9. -- low flags: 00
  10. -- high flags: 8003
  11. -- rect: left=330 top=300 right=322 bottom=430
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: See Script
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   edit script of field "lazy date"
  23. end mouseUp
  24.  
  25.  
  26.  
  27. -- part 14 (button)
  28. -- low flags: 00
  29. -- high flags: 8003
  30. -- rect: left=85 top=300 right=322 bottom=185
  31. -- title width / last selected line: 0
  32. -- icon id / first selected line: 0 / 0
  33. -- text alignment: 1
  34. -- font id: 0
  35. -- text size: 12
  36. -- style flags: 0
  37. -- line height: 16
  38. -- part name: See it Work
  39. ----- HyperTalk script -----
  40. on mouseUp
  41.   put empty into field"lazy date"
  42.   get the loc of field "lazy date"
  43.   click at it
  44.   type"3may"
  45.   click at 0,0
  46. end mouseUp
  47.  
  48.  
  49.  
  50. -- part contents for background part 12
  51. ----- text -----
  52. (New and Improved!)
  53. This field is a "lazy date" field. It will accept the following formats of dates:
  54. 1jan, 01jan,  15jan, 1jan55, 14may45
  55. Letters can be in upper or lower case. If you do not include the year, the field will assume the current year. Upon entry, your "lazy date" will be converted to the long date format used by Hypercard. Hypercard can then recognize it for sorts and other calculations. To use this field in your stacks, copy and paste it into them. You may rename the field (unlike the earlier version) or change any of it's other properties. Do not use it for other types of data or other date formats  as it may get confused. This is the second version (2jan88) and is almost four times faster than the first one (with a much shorter script). If you hate 1/1/87 formats like I do and if the others are just too much to type, you will like this field.
  56.  
  57. Script by Robert Wright
  58. Compuserve 74776,374
  59. 1013 N. Glendale Ave.
  60. Glendale, Ca. 91206
  61. Comments, suggestions, improvements appreciated!
  62.   
  63.  
  64.  
  65. -- part contents for background part 14
  66. ----- text -----
  67. Tuesday, May 3, 1988